home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_h.lzh / exec / io.h < prev    next >
C/C++ Source or Header  |  1991-03-14  |  2KB  |  64 lines

  1. #ifndef    EXEC_IO_H
  2. #define    EXEC_IO_H
  3. /*
  4. **    $Filename: exec/io.h $
  5. **    $Release: 2.04 $
  6. **    $Revision: 36.4 $
  7. **    $Date: 90/05/10 $
  8. **
  9. **    Message structures used for device communication
  10. **
  11. **    (C) Copyright 1985,1986,1987,1988,1989 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_PORTS_H
  16. #include "exec/ports.h"
  17. #endif /* EXEC_PORTS_H */
  18.  
  19.  
  20. struct IORequest {
  21.     struct  Message io_Message;
  22.     struct  Device  *io_Device;     /* device node pointer  */
  23.     struct  Unit    *io_Unit;        /* unit (driver private)*/
  24.     UWORD   io_Command;        /* device command */
  25.     UBYTE   io_Flags;
  26.     BYTE    io_Error;            /* error or warning num */
  27. };
  28.  
  29. struct IOStdReq {
  30.     struct  Message io_Message;
  31.     struct  Device  *io_Device;     /* device node pointer  */
  32.     struct  Unit    *io_Unit;        /* unit (driver private)*/
  33.     UWORD   io_Command;        /* device command */
  34.     UBYTE   io_Flags;
  35.     BYTE    io_Error;            /* error or warning num */
  36.     ULONG   io_Actual;            /* actual number of bytes transferred */
  37.     ULONG   io_Length;            /* requested number bytes transferred*/
  38.     APTR    io_Data;            /* points to data area */
  39.     ULONG   io_Offset;            /* offset for block structured devices */
  40. };
  41.  
  42. /* library vector offsets for device reserved vectors */
  43. #define DEV_BEGINIO    (-30)
  44. #define DEV_ABORTIO    (-36)
  45.  
  46. /* io_Flags defined bits */
  47. #define IOB_QUICK    0
  48. #define IOF_QUICK    (1<<0)
  49.  
  50.  
  51. #define CMD_INVALID    0
  52. #define CMD_RESET    1
  53. #define CMD_READ    2
  54. #define CMD_WRITE    3
  55. #define CMD_UPDATE    4
  56. #define CMD_CLEAR    5
  57. #define CMD_STOP    6
  58. #define CMD_START    7
  59. #define CMD_FLUSH    8
  60.  
  61. #define CMD_NONSTD    9
  62.  
  63. #endif    /* EXEC_IO_H */
  64.